Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
808
Merge Requests
55
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Compare Revisions
cb6d99216d83bd1d07b5b645a9cef5eb7884222a...8e845e8d94b4f79d5d83c3b2747f18d77642d0dc
Source
8e845e8d94b4f79d5d83c3b2747f18d77642d0dc
...
Target
cb6d99216d83bd1d07b5b645a9cef5eb7884222a
Compare
Commits (2)
(fix): Logged in user avatar check
· a22ec953
Emiliano Balbuena
authored
3 hours ago
a22ec953
Merge branch 'hotfix/logged-out-avatars' into 'master'
· 8e845e8d
Mark Harding
authored
3 hours ago
(fix): Logged in user avatar check Closes
#2247
See merge request
!659
8e845e8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/app/common/components/avatar/avatar.ts
View file @
8e845e8d
...
...
@@ -63,7 +63,7 @@ export class MindsAvatar {
if
(
this
.
object
.
type
!==
'
user
'
)
{
this
.
src
=
`
${
this
.
minds
.
cdn_url
}
fs/v1/avatars/
${
this
.
object
.
guid
}
/large/
${
this
.
object
.
icontime
}
`
;
}
else
if
(
this
.
object
.
guid
!==
this
.
minds
.
user
.
guid
)
{
}
else
if
(
!
this
.
minds
.
user
||
this
.
object
.
guid
!==
this
.
minds
.
user
.
guid
)
{
this
.
src
=
`
${
this
.
minds
.
cdn_url
}
icon/
${
this
.
object
.
guid
}
/large/
${
this
.
object
.
icontime
}
`
;
}
}
...
...
@@ -130,6 +130,6 @@ export class MindsAvatar {
* @returns true if the object guid matches the currently logged in user guid
*/
isOwnerAvatar
():
boolean
{
return
this
.
object
.
guid
===
this
.
minds
.
user
.
guid
;
return
this
.
minds
.
user
&&
this
.
object
.
guid
===
this
.
minds
.
user
.
guid
;
}
}
This diff is collapsed.