mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-03 10:28:46 +00:00
Remove account relationship buttons for logged in user's page
This commit is contained in:
parent
1e44d5d3d5
commit
a68a09a83e
3 changed files with 19 additions and 6 deletions
|
@ -31,6 +31,15 @@ type CommonData struct {
|
|||
NavbarData *NavbarData
|
||||
}
|
||||
|
||||
func (c CommonData) IsCurrentUser(id string) bool {
|
||||
if c.NavbarData != nil &&
|
||||
c.NavbarData.User != nil &&
|
||||
c.NavbarData.User.ID == id {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type ErrorData struct {
|
||||
*CommonData
|
||||
Error string
|
||||
|
@ -69,12 +78,13 @@ type NotificationData struct {
|
|||
|
||||
type UserData struct {
|
||||
*CommonData
|
||||
User *mastodon.Account
|
||||
Type string
|
||||
Users []*mastodon.Account
|
||||
Statuses []*mastodon.Status
|
||||
NextLink string
|
||||
DarkMode bool
|
||||
User *mastodon.Account
|
||||
IsCurrent bool
|
||||
Type string
|
||||
Users []*mastodon.Account
|
||||
Statuses []*mastodon.Status
|
||||
NextLink string
|
||||
DarkMode bool
|
||||
}
|
||||
|
||||
type UserSearchData struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue