mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore] Move local account settings to separate db table (#2770)
* [chore] Move local account settings to separate database model * don't use separate settings_id
This commit is contained in:
@ -130,13 +130,8 @@ func (c *Converter) ASRepresentationToAccount(ctx context.Context, accountable a
|
||||
// Extract account note (bio / summary).
|
||||
acct.Note = ap.ExtractSummary(accountable)
|
||||
|
||||
// Assume:
|
||||
// - memorial (TODO)
|
||||
// - sensitive (TODO)
|
||||
// - hide collections (TODO)
|
||||
// Assume not memorial (todo)
|
||||
acct.Memorial = util.Ptr(false)
|
||||
acct.Sensitive = util.Ptr(false)
|
||||
acct.HideCollections = util.Ptr(false)
|
||||
|
||||
// Extract 'manuallyApprovesFollowers' aka locked account (default = true).
|
||||
manuallyApprovesFollowers := ap.GetManuallyApprovesFollowers(accountable)
|
||||
@ -146,9 +141,6 @@ func (c *Converter) ASRepresentationToAccount(ctx context.Context, accountable a
|
||||
discoverable := ap.GetDiscoverable(accountable)
|
||||
acct.Discoverable = &discoverable
|
||||
|
||||
// Assume not an RSS feed.
|
||||
acct.EnableRSS = util.Ptr(false)
|
||||
|
||||
// Extract the URL property.
|
||||
urls := ap.GetURL(accountable)
|
||||
if len(urls) == 0 {
|
||||
|
Reference in New Issue
Block a user