Codeberg entfernt
This commit is contained in:
parent
7825565b3d
commit
b8cb368c27
7 changed files with 18 additions and 18 deletions
2
LICENSE
2
LICENSE
|
|
@ -24,4 +24,4 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
OTHER DEALINGS IN THE SOFTWARE.
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
For more information, please refer to <https://unlicense.org/>
|
For more information, please refer to <https://unlicense.org/>
|
||||||
and licensed under GPL version 2, unless stated otherwise.
|
and licensed under GPL version 2, unless stated otherwise.
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
# Datenstrom Yellow extension settings
|
# Datenstrom Yellow extension settings
|
||||||
|
|
||||||
Extension: Mastodonapi
|
Extension: Mastodonapi
|
||||||
Version: 0.9.8
|
Version: 0.9.9
|
||||||
Description: Import your toots into your blog.
|
Description: Import your toots into your blog.
|
||||||
Developer: Simon Rohr
|
Developer: Simon Rohr
|
||||||
Tag: feature
|
Tag: feature
|
||||||
DownloadUrl: https://codeberg.org/simonpipe/yellow-mastodonapi/archive/main.zip
|
DownloadUrl: https://git.thepipes.ch/simon/yellow-mastodonapi/archive/main.zip
|
||||||
DocumentationUrl: https://codeberg.org/simonpipe/yellow-mastodonapi
|
DocumentationUrl: https://git.thepipes.ch/simon/yellow-mastodonapi
|
||||||
DocumentationLanguage: en, de
|
DocumentationLanguage: en, de
|
||||||
Published: 2026-05-27 14:20:00
|
Published: 2026-07-28 15:41:00
|
||||||
Status: experimental
|
Status: experimental
|
||||||
system/workers/mastodonapi.php: mastodonapi.php, create, update
|
system/workers/mastodonapi.php: mastodonapi.php, create, update
|
||||||
system/workers/mastodonapi.status: mastodonapi.status, create, update, careful
|
system/workers/mastodonapi.status: mastodonapi.status, create, update, careful
|
||||||
|
|
|
||||||
|
|
@ -51,4 +51,4 @@
|
||||||
7. Führe den Befehl im **Terminal** aus.
|
7. Führe den Befehl im **Terminal** aus.
|
||||||
→ Du erhältst dein **User-Token**.
|
→ Du erhältst dein **User-Token**.
|
||||||
8. Trage den Token in Yellow in der `yellow-system.ini` unter
|
8. Trage den Token in Yellow in der `yellow-system.ini` unter
|
||||||
`MastodonapiAccessToken` ein.
|
`MastodonapiAccessToken` ein.
|
||||||
|
|
|
||||||
|
|
@ -40,4 +40,4 @@
|
||||||
-d "code=DER_CODE_AUS_SCHRITT_4" \
|
-d "code=DER_CODE_AUS_SCHRITT_4" \
|
||||||
-d "redirect_uri=urn:ietf:wg:oauth:2.0:oob"
|
-d "redirect_uri=urn:ietf:wg:oauth:2.0:oob"
|
||||||
```
|
```
|
||||||
6. Copy this code into your **terminal** and press Enter. You will now receive your **user token**, which you can enter in Yellow's `yellow-system.ini`.
|
6. Copy this code into your **terminal** and press Enter. You will now receive your **user token**, which you can enter in Yellow's `yellow-system.ini`.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
// Mastodonapi extension, https://codeberg.org/simonpipe/yellow-mastodonapi
|
// Mastodonapi extension, https://git.thepipes.ch/simon/yellow-mastodonapi
|
||||||
|
|
||||||
class YellowMastodonapi {
|
class YellowMastodonapi {
|
||||||
const VERSION = "0.9.8";
|
const VERSION = "0.9.8";
|
||||||
|
|
@ -293,4 +293,4 @@ class YellowMastodonapi {
|
||||||
private function getStatusFile() {
|
private function getStatusFile() {
|
||||||
return $this->yellow->system->get("coreWorkerDirectory") . "mastodonapi.status";
|
return $this->yellow->system->get("coreWorkerDirectory") . "mastodonapi.status";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<p align="right"><a href="https://codeberg.org/simonpipe/yellow-mastodonapi/src/branch/main/readme-de.md">Deutsch</a> <a href="https://codeberg.org/simonpipe/yellow-mastodonapi/src/branch/main/readme.md">English</a></p>
|
<p align="right"><a href="https://git.thepipes.ch/simon/yellow-mastodonapi/src/branch/main/readme-de.md">Deutsch</a> <a href="https://git.thepipes.ch/simon/yellow-mastodonapi/src/branch/main/readme.md">English</a></p>
|
||||||
|
|
||||||
# Mastodonapi 0.9.8
|
# Mastodonapi 0.9.8
|
||||||
|
|
||||||
|
|
@ -6,7 +6,7 @@ Importiere deine Toots in deinen Blog. Getestet mit <a href="https://comam.es/wh
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
<a href="https://codeberg.org/simonpipe/yellow-mastodonapi/archive/main.zip">Lade die ZIP-Datei herunter</a> und kopiere sie in deinen system/extensions Ordner. <a target="blank_" href="https://github.com/annaesvensson/yellow-update">Erfahre mehr über Erweiterungen</a>.
|
<a href="https://git.thepipes.ch/simon/yellow-mastodonapi/archive/main.zip">Lade die ZIP-Datei herunter</a> und kopiere sie in deinen system/extensions Ordner. <a target="blank_" href="https://github.com/annaesvensson/yellow-update">Erfahre mehr über Erweiterungen</a>.
|
||||||
|
|
||||||
## Funktionsweise
|
## Funktionsweise
|
||||||
|
|
||||||
|
|
@ -30,7 +30,7 @@ Alle Einstellungen befinden sich in `system/extensions/yellow-system.ini`:
|
||||||
*Finde die ID eines Snac oder Mastodon Accounts: Gib "https://DEINE_INSTANZ_URL/api/v1/accounts/lookup?acct=PROFILNAME" in deinen Browser ein.*
|
*Finde die ID eines Snac oder Mastodon Accounts: Gib "https://DEINE_INSTANZ_URL/api/v1/accounts/lookup?acct=PROFILNAME" in deinen Browser ein.*
|
||||||
*Finde die ID eines GoToSocial-Accounts <a href="https://codeberg.org/simonpipe/yellow-mastodonapi/src/branch/main/help-de.md">(siehe hier)</a>*
|
*Finde die ID eines GoToSocial-Accounts <a href="https://codeberg.org/simonpipe/yellow-mastodonapi/src/branch/main/help-de.md">(siehe hier)</a>*
|
||||||
|
|
||||||
`MastodonapiAccessToken` = optional für einen Mastodon-Account, zwingend für einen GoToSocial-Account <a href="https://codeberg.org/simonpipe/yellow-mastodonapi/src/branch/main/help-de.md">(Wie komme ich zu einem Token?)</a>
|
`MastodonapiAccessToken` = optional für einen Mastodon-Account, zwingend für einen GoToSocial-Account <a href="https://git.thepipes.ch/simon/yellow-mastodonapi/src/branch/main/help-de.md">(Wie komme ich zu einem Token?)</a>
|
||||||
`MastodonapiUpdateInterval` = Zeitintervall zwischen automatischen Updates in Minuten (Standard: 30)
|
`MastodonapiUpdateInterval` = Zeitintervall zwischen automatischen Updates in Minuten (Standard: 30)
|
||||||
`MastodonapiLimit` = Anzahl der Toots, die pro Durchgang abgerufen werden (Standard: 20)
|
`MastodonapiLimit` = Anzahl der Toots, die pro Durchgang abgerufen werden (Standard: 20)
|
||||||
`MastodonapiHashtag` = leer lassen für alle Beiträge; oder mit #hashtag filtern
|
`MastodonapiHashtag` = leer lassen für alle Beiträge; oder mit #hashtag filtern
|
||||||
|
|
@ -49,4 +49,4 @@ Die folgenden Status-Werte werden unterstützt:
|
||||||
## Entwickler
|
## Entwickler
|
||||||
|
|
||||||
Simon Rohr
|
Simon Rohr
|
||||||
*Fediverse: <a href="https://snac.thepipes.ch/simon">@simon@snac.thepipes.ch</a>*
|
*Fediverse: <a href="https://snac.thepipes.ch/simon">@simon@snac.thepipes.ch</a>*
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<p align="right"><a href="https://codeberg.org/simonpipe/yellow-mastodonapi/src/branch/main/readme-de.md">Deutsch</a> <a href="https://codeberg.org/simonpipe/yellow-mastodonapi/src/branch/main/readme.md">English</a></p>
|
<p align="right"><a href="https://git.thepipes.ch/simon/yellow-mastodonapi/src/branch/main/readme-de.md">Deutsch</a> <a href="https://git.thepipes.ch/simon/yellow-mastodonapi/src/branch/main/readme.md">English</a></p>
|
||||||
|
|
||||||
# Mastodonapi 0.9.8
|
# Mastodonapi 0.9.8
|
||||||
|
|
||||||
|
|
@ -6,7 +6,7 @@ Import your toots into your blog. Tested with <a href="https://comam.es/what-is-
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
<a href="https://codeberg.org/simonpipe/yellow-mastodonapi/archive/main.zip">Download ZIP file</a> and copy it into your `system/extensions` folder. <a target="blank_" href="https://github.com/annaesvensson/yellow-update">Learn more about extensions</a>.
|
<a href="https://git.thepipes.ch/simon/yellow-mastodonapi/archive/main.zip">Download ZIP file</a> and copy it into your `system/extensions` folder. <a target="blank_" href="https://github.com/annaesvensson/yellow-update">Learn more about extensions</a>.
|
||||||
|
|
||||||
## How to
|
## How to
|
||||||
|
|
||||||
|
|
@ -30,7 +30,7 @@ All settings are in `system/extensions/yellow-system.ini`:
|
||||||
*Find the ID of a Snac or Mastodon account: Enter "https://YOUR_INSTANCE_URL/api/v1/accounts/lookup?acct=PROFILNAME" in your browser.*
|
*Find the ID of a Snac or Mastodon account: Enter "https://YOUR_INSTANCE_URL/api/v1/accounts/lookup?acct=PROFILNAME" in your browser.*
|
||||||
*Find the ID of a GoToSocial account <a href="https://codeberg.org/simonpipe/yellow-mastodonapi/src/branch/main/help-en.md">(see here)</a>*
|
*Find the ID of a GoToSocial account <a href="https://codeberg.org/simonpipe/yellow-mastodonapi/src/branch/main/help-en.md">(see here)</a>*
|
||||||
|
|
||||||
`MastodonapiAccessToken` = optional for a Mastodon account, mandatory for a GoToSocial account <a href="https://codeberg.org/simonpipe/yellow-mastodonapi/src/branch/main/help-en.md">(How do I get a token?)</a>
|
`MastodonapiAccessToken` = optional for a Mastodon account, mandatory for a GoToSocial account <a href="https://git.thepipes.ch/simon/yellow-mastodonapi/src/branch/main/help-en.md">(How do I get a token?)</a>
|
||||||
`MastodonapiUpdateInterval` = time interval between automatic updates in minutes (default: 30)
|
`MastodonapiUpdateInterval` = time interval between automatic updates in minutes (default: 30)
|
||||||
`MastodonapiLimit` = number of Toots retrieved per run (default: 20)
|
`MastodonapiLimit` = number of Toots retrieved per run (default: 20)
|
||||||
`MastodonapiHashtag` = leave blank for all posts; or filter with #hashtag
|
`MastodonapiHashtag` = leave blank for all posts; or filter with #hashtag
|
||||||
|
|
@ -49,4 +49,4 @@ The following status values are supported:
|
||||||
## Developer
|
## Developer
|
||||||
|
|
||||||
Simon Rohr
|
Simon Rohr
|
||||||
*Fediverse: <a href="https://snac.thepipes.ch/simon">@simon@snac.thepipes.ch</a>*
|
*Fediverse: <a href="https://snac.thepipes.ch/simon">@simon@snac.thepipes.ch</a>*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue