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
+42-49Lines changed: 42 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ 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
9
## Functions
10
10
@@ -16,32 +16,41 @@ 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 (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
38
+
## Instructions for Use
39
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.
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
41
50
42
-
## TootPress API
51
+
## CSS classes
43
52
44
-
WordPress Action: tootpress_toots_update (fired on toot update)
53
+
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.
45
54
46
55
## Data & Files
47
56
@@ -71,14 +80,18 @@ Following toot objects are not supported.
71
80
* Emojis
72
81
* Teaser
73
82
74
-
## Not supported Toot Types
83
+
## Excluded Toot Types
75
84
76
-
Following toot types are not supported.
85
+
Following toot types are excluded from the data transfer.
77
86
78
87
* Boosts
79
88
* Replys
80
89
* Private Toots
81
90
91
+
## TootPress API
92
+
93
+
WordPress Action: tootpress_toots_update (fired on toot update)
94
+
82
95
## TootPress Cron Jobs @ WordPress
83
96
84
97
* Steady Fetch (every 15 minutes, customizable)
@@ -96,59 +109,38 @@ 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?
117
+
### Why are boosts, replys and private toots not supported?
113
118
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.
123
-
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.
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?
145
-
146
-
No.
147
-
148
133
## Live Demo
149
134
150
135
[Here!](https://www.unmus.de/troets/)
151
136
137
+
## Maturity Grade
138
+
139
+
* Low maturity level
140
+
* Early stage of development
141
+
* Future updates may require a complete reload of the toots.
142
+
* To avoid data inconsistancy and process errors
143
+
152
144
## Branches
153
145
154
146
This repository follows the git-flow workflow to a large extent.
@@ -163,6 +155,7 @@ Hotfix and release branches will not be applied.
163
155
## Built With
164
156
165
157
*[Visual Studio Code](https://code.visualstudio.com)
0 commit comments