mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Add more contribution help
This commit is contained in:
parent
460b68c381
commit
35f54d108f
9 changed files with 331 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue