Add more contribution help

This commit is contained in:
Jesse Wierzbinski 2023-10-22 14:23:15 -10:00
parent 460b68c381
commit 35f54d108f
No known key found for this signature in database
GPG key ID: F9A1E418934E40B0
9 changed files with 331 additions and 6 deletions

View file

@ -223,7 +223,7 @@ export class Status extends BaseEntity {
id: `${config.http.base_url}/users/${data.account.username}/statuses/${newStatus.id}`,
type: "Note",
summary: data.spoiler_text,
content: data.content, // TODO: Format as HTML
content: data.content,
inReplyTo: data.reply?.object
? data.reply.object.data.id
: undefined,

View file

@ -214,6 +214,8 @@ export class User extends BaseEntity {
* Fetches the list of followers associated with the actor and updates the user's followers
*/
async fetchFollowers() {
const config = getConfig();
let followers: APOrderedCollectionPage = await fetch(
`${this.actor.data.followers?.toString() ?? ""}?page=1`,
{
@ -234,7 +236,10 @@ export class User extends BaseEntity {
};
}
// TODO: integrate followers
if (config.activitypub.fetch_all_collection_members) {
// Loop through followers list and retrieve each actor individually
// TODO: Implement
}
}
/**