mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 16:52:25 -05:00
[feature] Process incoming Move activity (#2724)
* [feature] Process incoming account Move activity * fix targetAcct typo * put move origin account on fMsg * shift more move functionality back to the worker fn * simplify error logic
This commit is contained in:
parent
5e871e81a8
commit
1bcdf1da3b
16 changed files with 1149 additions and 16 deletions
|
|
@ -187,6 +187,12 @@ func (a *Account) IsSuspended() bool {
|
|||
return !a.SuspendedAt.IsZero()
|
||||
}
|
||||
|
||||
// IsMoving returns true if
|
||||
// account is Moving or has Moved.
|
||||
func (a *Account) IsMoving() bool {
|
||||
return a.MovedToURI != "" || a.MoveID != ""
|
||||
}
|
||||
|
||||
// AccountToEmoji is an intermediate struct to facilitate the many2many relationship between an account and one or more emojis.
|
||||
type AccountToEmoji struct {
|
||||
AccountID string `bun:"type:CHAR(26),unique:accountemoji,nullzero,notnull"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue