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
383
Merge Requests
65
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
43727865
Commit
43727865
authored
43 minutes ago
by
Mark Harding
Browse files
Options
Download
(fix): SEO for groups - closes
#2543
parent
c6310433
master
fix/2543-seo-for-groups
No related merge requests found
Pipeline
#115628944
running with stages
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
36 deletions
+40
-36
src/app/modules/groups/profile/profile.html
View file @
43727865
...
...
@@ -18,7 +18,7 @@
*ngIf=
"group && (group['is:member'] || group.membership == 2)"
>
<!-- Sidebar -->
<div
class=
"m-groupGrid__left"
>
<div
class=
"m-groupGrid__left"
*mIfBrowser
>
<m-videochat></m-videochat>
<header
...
...
@@ -328,7 +328,7 @@
<div
class=
"m-groupGrid__right"
[hidden]=
"!showRight"
>
<!-- Conversation filter -->
<minds-groups-profile-conversation
[group]=
"group"
>
<minds-groups-profile-conversation
[group]=
"group"
*mIfBrowser
>
</minds-groups-profile-conversation>
<!-- END: Conversation filter -->
</div>
...
...
This diff is collapsed.
src/app/modules/groups/profile/profile.ts
View file @
43727865
...
...
@@ -183,8 +183,9 @@ export class GroupsProfile {
}
async
load
()
{
if
(
isPlatformServer
(
this
.
platformId
))
return
;
this
.
resetMarkers
();
if
(
isPlatformBrowser
(
this
.
platformId
))
{
this
.
resetMarkers
();
}
this
.
error
=
''
;
this
.
group
=
null
;
...
...
@@ -199,38 +200,41 @@ export class GroupsProfile {
if
(
this
.
updateMarkersSubscription
)
this
.
updateMarkersSubscription
.
unsubscribe
();
this
.
updateMarkersSubscription
=
this
.
updateMarkers
.
getByEntityGuid
(
this
.
guid
)
.
subscribe
(
(
marker
=>
{
// this.updateMarkersSubscription = this.updateMarkers.markers.subscribe(markers => {
if
(
!
marker
)
return
;
this
.
group
.
hasGathering$
=
interval
(
1000
).
pipe
(
throttle
(()
=>
interval
(
2000
)),
//only allow once per 2 seconds
startWith
(
0
),
map
(
()
=>
[
marker
].
filter
(
marker
=>
marker
.
entity_guid
==
this
.
group
.
guid
&&
marker
.
marker
==
'
gathering-heartbeat
'
&&
marker
.
updated_timestamp
>
Date
.
now
()
/
1000
-
60
//1 minute tollerance
).
length
>
0
)
);
let
hasMarker
=
marker
.
read_timestamp
<
marker
.
updated_timestamp
&&
marker
.
entity_guid
==
this
.
group
.
guid
&&
marker
.
marker
!=
'
gathering-heartbeat
'
;
if
(
hasMarker
)
this
.
resetMarkers
();
}).
bind
(
this
)
);
// Check for comment updates
this
.
joinCommentsSocketRoom
();
if
(
isPlatformBrowser
(
this
.
platformId
))
{
this
.
updateMarkersSubscription
=
this
.
updateMarkers
.
getByEntityGuid
(
this
.
guid
)
.
subscribe
(
(
marker
=>
{
// this.updateMarkersSubscription = this.updateMarkers.markers.subscribe(markers => {
if
(
!
marker
)
return
;
this
.
group
.
hasGathering$
=
interval
(
1000
).
pipe
(
throttle
(()
=>
interval
(
2000
)),
//only allow once per 2 seconds
startWith
(
0
),
map
(
()
=>
[
marker
].
filter
(
marker
=>
marker
.
entity_guid
==
this
.
group
.
guid
&&
marker
.
marker
==
'
gathering-heartbeat
'
&&
marker
.
updated_timestamp
>
Date
.
now
()
/
1000
-
60
//1 minute tollerance
).
length
>
0
)
);
let
hasMarker
=
marker
.
read_timestamp
<
marker
.
updated_timestamp
&&
marker
.
entity_guid
==
this
.
group
.
guid
&&
marker
.
marker
!=
'
gathering-heartbeat
'
;
if
(
hasMarker
)
this
.
resetMarkers
();
}).
bind
(
this
)
);
// Check for comment updates
this
.
joinCommentsSocketRoom
();
}
this
.
updateMeta
();
this
.
context
.
set
(
'
activity
'
,
{
...
...
This diff is collapsed.
Please
register
or
sign in
to comment