You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+54-61Lines changed: 54 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@ TootPress copies your toots from Mastodon to WordPress continuously.
4
4
5
5
## Description
6
6
7
-
The plugin copies your toots from Mastodon continuously and saves them into the WordPress database. The toots can be displayed on the blog chronologically (but do not have to). Indeed, Mastodon is also blogging, micro-blogging so to speak.
7
+
TootPress brings your data back and copies your toots from Mastodon to WordPress continuously. The toots will be saved in the WordPress database and can be displayed on the blog chronologically (but do not have to). Indeed, Mastodon is also blogging, micro-blogging so to speak.
8
8
9
-
## Functions
9
+
## Features
10
10
11
11
* Copy your toots back
12
12
* Copy your tooted images back
@@ -16,39 +16,37 @@ The plugin copies your toots from Mastodon continuously and saves them into the
16
16
17
17
## Installation
18
18
19
-
1. Download the plugin from the GitHub Repository (see Releases)
20
-
2. Rename the folder to "tootpress"
21
-
2. Upload the plugin to the WordPress Plugin Directory
19
+
1. Download the plugin from the GitHub Repository (see latest Release)
20
+
2. Rename the downloaded folder to "tootpress"
21
+
2. Upload the folder to the WordPress Plugin Directory
22
22
3. Activate the plugin in WordPress
23
23
4. Follow the configuration manual
24
24
25
25
## Configuration
26
26
27
-
1. Create an Application on your Mastodon Instance for API Access (Account Settings/Applications)
28
-
2. Restrict the Authorization of the Application to Read (all data)
27
+
1. Create an Application on your Mastodon Instance to get API Access (under Settings/Development)
28
+
2. Restrict the Authorization of the created Application to Read (all data)
29
29
3. Maintain Mastodon Instance and Access Token in the TootPress Settings
30
-
4. Retrieve your Account ID (WordPress Tools/Toots)
30
+
4. Retrieve your Account ID (in WordPress under Tools/Toots)
31
31
5. Maintain the Account ID in the TootPress Settings
32
-
6. Create a new WordPress Page and add the Page to your Main Menu
33
-
7. Maintain the Page ID in the TootPress Settings (see URL editing the Page)
34
-
8. Run Mastodon API Request once (WordPress Tools/Toots)
32
+
6. Create a new WordPress Page and add the Page to your Menu
33
+
7. Maintain the Page ID in the TootPress Settings<br/>(you find the Page ID in URL of the Browser when editing the Page in WordPress)
34
+
8. Run Mastodon API Request once (in WordPress under Tools/Toots)
35
35
9. Activate Steady Fetch
36
36
10. That's it!
37
37
38
-
## CSS classes
39
-
40
-
TootPress comes with basic CSS Styles. For best fit it is required to add additional styles in your theme. All TootPress UI elements can be addressed with individual CSS selectors. Please use browser debugger to find the right classes.
41
-
42
-
## TootPress API
43
-
44
-
WordPress Action: tootpress_toots_update (fired on toot update)
38
+
## Instructions for Use
45
39
46
-
## Data & Files
47
-
48
-
TootPress creates 2 folders within wp-content/uploads.
49
-
50
-
* tootpress-mastodonapidata = Archive of the received Mastodon API data
51
-
* tootpress-images = Toot Image Folder
40
+
* You find TootPress in WordPress in the area of Settings and Tools
41
+
* Steady Fetch activates the automatic and regular load of new toots
42
+
* First API Request will copy your last 40 toots
43
+
* New toots will be loaded every 15 minutes (customizable)
44
+
* You can load your complete timeline into WordPress with the eponymous function
45
+
* Loading your complete timeline can take several hours depending of the amount of toots
46
+
* 480 toots are loaded per hour as maximum
47
+
* You can run a Mastodon API Request everytime at your own with the eponymous function
48
+
* There is no prescribed order for the execution of Steady Fetch, Complete Timeline or manual requests
49
+
* If problems occur, TootPress provides a Healthy Check
52
50
53
51
## Supported Toot Objects
54
52
@@ -71,19 +69,34 @@ Following toot objects are not supported.
71
69
* Emojis
72
70
* Teaser
73
71
74
-
## Not supported Toot Types
72
+
## Excluded Toot Types
75
73
76
-
Following toot types are not supported.
74
+
Following toot types are excluded from the data transfer.
77
75
78
76
* Boosts
79
77
* Replys
80
78
* Private Toots
81
79
80
+
## CSS classes
81
+
82
+
TootPress comes with basic CSS Styles. For best fit it is required to add additional styles in your theme. All TootPress UI elements can be addressed with individual CSS selectors. Please use the browser development tools to find the right classes.
83
+
84
+
## Data & Files
85
+
86
+
TootPress creates 2 folders within wp-content/uploads.
87
+
88
+
* tootpress-mastodonapidata = Archive of the received Mastodon API data
89
+
* tootpress-images = Toot Image Folder
90
+
82
91
## TootPress Cron Jobs @ WordPress
83
92
84
93
* Steady Fetch (every 15 minutes, customizable)
85
94
* Load Complete Timeline (every 5 minutes)
86
95
96
+
## TootPress API
97
+
98
+
WordPress Action: tootpress_toots_update (fired on toot update)
99
+
87
100
## WordPress Framework
88
101
89
102
Following components of WordPress are used in TootPress.
@@ -96,58 +109,33 @@ Following components of WordPress are used in TootPress.
96
109
* Date Functions
97
110
* MySQL Functions
98
111
* URL Functions
99
-
* WordPress Functions
100
112
* File Functions
113
+
* Content Functions
101
114
102
115
## Frequently Asked Questions
103
116
104
-
### Which Toots are displayed in the blog?
105
-
106
-
Only your own toots will be displayed. Boosts (these are not your toots), Replys (these are communication, no micro-posts) and private Toots are excluded.
107
-
108
-
### Can the toots be loaded automaticly?
109
-
110
-
Yes. Activate Steady Fetch for this.
111
-
112
-
### How many toots will be loaded with an API Request?
113
-
114
-
40 toots at maximum.
115
-
116
-
### How often will the toots be loaded?
117
-
118
-
As Standard your toots will be fetched from Mastodon every 15 minutes. But you can define the period in minutes different in the plugin settings.
119
-
120
-
### Can I load my complete Mastodon timeline?
121
-
122
-
Yes. You can load your complete Mastodon timeline with this plugin. Just run the corresponding function. The Load will take some time. Every 5 minutes 40 toots will be loaded until the timeline is complete.
117
+
### Why are boosts, replys and private toots not supported?
123
118
124
-
### What do I have to do first, activate steady fetch or load the complete timeline first?
125
-
126
-
All the same. It works both.
119
+
Boosts are not your toots. Replys are communication, but not micro-posts. Private Toots should stay private.
127
120
128
121
### How does TootPress handle the canonical URL?
129
122
130
-
TootPress does not modify the existing canonical url handling in WordPress. If you want to change the canonical url, you must control that with a SEO plugin. This is relevant for the paged TootPress subpages.
123
+
TootPress does not modify the existing canonical url handling in WordPress. If you want to create a unique canonical url for each TootPress subpage, you must control that with a SEO plugin. This becomes relevant when your toots must be distributed over several pages and the plugin starts the paging process.
131
124
132
125
### What have to be considered with the usage of caching plugins?
133
126
134
-
The length of the cron period in combination with the configuration of caching determines how early a toot will be displayed within the blog. If a toot should be displayed as early as possible, the caching must be deactivated for the page including the toots. Another possibility is removing the affected page from the cache, if new toots have been loaded. For this, a WordPress Action is fired by the plugin (see above).
135
-
136
-
### Why require some updates a reset of the plugin and reload of the data?
137
-
138
-
The plugin does still not have a high maturity grade. It is in a early stage of development. To avoid data inconsistency and process errors some updates require a reload of the data.
127
+
The length of the cron period in combination with the configuration of caching determines how early a toot will be displayed within the blog. If a toot should be displayed as early as possible, the caching must be deactivated for the page containing the toots. Another possibility is removing the affected page from the cache, if new toots have been loaded. For this, a WordPress Action is fired by the plugin, which then must be processed by your caching plugin.
139
128
140
129
### Does TootPress support WordPress Multisite?
141
130
142
131
No. TootPress does not support the WordPress Multisite Feature. The plugin is working on the master-site, but is not working on all other child sites within the wordpress network.
143
132
144
-
### Can TootPress load toots from several Mastodon instances?
133
+
##Maturity Grade
145
134
146
-
No.
147
-
148
-
## Live Demo
149
-
150
-
[Here!](https://www.unmus.de/troets/)
135
+
* Low maturity level
136
+
* Early stage of development
137
+
* Future updates may require a complete reload of the toots.
138
+
* To avoid data inconsistancy and process errors
151
139
152
140
## Branches
153
141
@@ -160,9 +148,14 @@ This repository follows the git-flow workflow to a large extent.
160
148
161
149
Hotfix and release branches will not be applied.
162
150
151
+
## Live Demo
152
+
153
+
[Here!](https://www.unmus.de/troets/)
154
+
163
155
## Built With
164
156
165
157
*[Visual Studio Code](https://code.visualstudio.com)
0 commit comments