add hastag url in readme

This commit is contained in:
Nicco Kunzmann 2022-04-28 19:57:12 +00:00
parent be78b7f498
commit 7df9e48860
2 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ Querystring options:
| option | required | description |
| ------ | -------- | ----------- |
| `userurl` | **yes** | Mastodon/ActivityPub account URL (usually `https://${instance}/users/${username}`) |
| `userurl` | **yes** | Mastodon/ActivityPub hashtag URL (usually `https://${instance}/tags/${tagname}`) |
| `feedurl` | no | a URL to a page of an ActivityPub post collection. Only used for pages beyond the first. |
| `theme` | no | either `dark`, `light` or `auto`, to select the UI theme (default is `dark`). `auto` will appear light unless the user sets up dark mode on their device. |
| `boosts` | no | whether to show boosts or not |

View File

@ -79,6 +79,8 @@ app.get('/api/feed',cors(),logger,function(req,res){
var userUrl = feedUrl.replace(/\.atom.*/i,'');
console.log("userUrl = ", userUrl);
var redirectUrl = '/apiv2/feed?';
var qs = ['userurl='+encodeURIComponent(userUrl),"api=v1"];