fix: sync linked discussion guest support
This commit is contained in:
parent
5f7c0b9804
commit
9f73dc20da
27 changed files with 1004 additions and 30 deletions
|
|
@ -371,6 +371,11 @@ func (s *ChannelStore) getChannelForViewer(ctx context.Context, db sqlcgen.DBTX,
|
|||
if err != nil {
|
||||
return domain.Channel{}, domain.ChannelMember{}, false, err
|
||||
}
|
||||
if guest, ok, guestErr := s.getLinkedDiscussionGuest(ctx, db, viewerUserID, ch); guestErr != nil {
|
||||
return domain.Channel{}, domain.ChannelMember{}, false, guestErr
|
||||
} else if ok {
|
||||
return ch, guest, true, nil
|
||||
}
|
||||
if member, _, ok, err := s.monoforumAdminPreview(ctx, db, viewerUserID, ch); err != nil {
|
||||
return domain.Channel{}, domain.ChannelMember{}, false, err
|
||||
} else if ok {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue