mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 14:52:24 -06:00
start working on parent/child statuses
This commit is contained in:
parent
a42e05eee0
commit
6a053ecfd8
5 changed files with 130 additions and 4 deletions
|
|
@ -11,11 +11,10 @@ func (f *filter) StatusHometimelineable(targetStatus *gtsmodel.Status, requestin
|
|||
l := f.log.WithFields(logrus.Fields{
|
||||
"func": "StatusHometimelineable",
|
||||
"statusID": targetStatus.ID,
|
||||
"requestingAccountID": requestingAccount.ID,
|
||||
})
|
||||
|
||||
// status owner should always be able to see their status in their timeline so we can return early if this is the case
|
||||
if targetStatus.AccountID == requestingAccount.ID {
|
||||
if requestingAccount != nil && targetStatus.AccountID == requestingAccount.ID {
|
||||
return true, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue