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
402
Merge Requests
67
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
Compare Revisions
41c4bc1180ed64963d469e127f23d4cd5438cc1f...c790a69b152e2b5aa10c8b0dea3cdf8b65bb41b7
Source
c790a69b152e2b5aa10c8b0dea3cdf8b65bb41b7
...
Target
41c4bc1180ed64963d469e127f23d4cd5438cc1f
Compare
Commits (3)
(chore): robot rules for low interaction posts
· de34bd78
Mark Harding
authored
5 hours ago
de34bd78
(fix): channel no index should be less than <
· 266c3f0d
Mark Harding
authored
5 hours ago
266c3f0d
Merge remote-tracking branch 'origin/master' into chore/local-infra-tweaks
· c790a69b
Emiliano Balbuena
authored
2 hours ago
c790a69b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
5 deletions
+26
-5
src/app/common/services/meta.service.ts
View file @
c790a69b
...
...
@@ -6,6 +6,7 @@ import { ConfigsService } from './configs.service';
const
DEFAULT_META_TITLE
=
'
Minds
'
;
const
DEFAULT_META_DESCRIPTION
=
'
...
'
;
export
const
MIN_METRIC_FOR_ROBOTS
=
5
;
@
Injectable
()
export
class
MetaService
{
...
...
This diff is collapsed.
src/app/modules/blogs/view/infinite.ts
View file @
c790a69b
...
...
@@ -10,7 +10,10 @@ import { AnalyticsService } from '../../../services/analytics';
import
{
MindsBlogResponse
}
from
'
../../../interfaces/responses
'
;
import
{
MindsBlogEntity
}
from
'
../../../interfaces/entities
'
;
import
{
ConfigsService
}
from
'
../../../common/services/configs.service
'
;
import
{
MetaService
}
from
'
../../../common/services/meta.service
'
;
import
{
MetaService
,
MIN_METRIC_FOR_ROBOTS
,
}
from
'
../../../common/services/meta.service
'
;
@
Component
({
selector
:
'
m-blog-view-infinite
'
,
...
...
@@ -125,6 +128,9 @@ export class BlogViewInfinite {
.
setDescription
(
description
)
//.setAuthor(this.blog.custom_meta['author'] || `@${this.blog.ownerObj.username}`)
.
setOgUrl
(
blog
.
perma_url
)
.
setOgImage
(
blog
.
thumbnail_src
);
.
setOgImage
(
blog
.
thumbnail_src
)
.
setRobots
(
blog
[
'
thumbs:up:count
'
]
>=
MIN_METRIC_FOR_ROBOTS
?
'
all
'
:
'
noindex
'
);
}
}
This diff is collapsed.
src/app/modules/channels/channel.component.ts
View file @
c790a69b
...
...
@@ -18,7 +18,10 @@ import { DialogService } from '../../common/services/confirm-leave-dialog.servic
import
{
BlockListService
}
from
'
../../common/services/block-list.service
'
;
import
{
ChannelSortedComponent
}
from
'
./sorted/sorted.component
'
;
import
{
ClientMetaService
}
from
'
../../common/services/client-meta.service
'
;
import
{
MetaService
}
from
'
../../common/services/meta.service
'
;
import
{
MetaService
,
MIN_METRIC_FOR_ROBOTS
,
}
from
'
../../common/services/meta.service
'
;
import
{
ConfigsService
}
from
'
../../common/services/configs.service
'
;
@
Component
({
...
...
@@ -133,7 +136,12 @@ export class ChannelComponent {
width
:
2000
,
height
:
1000
,
});
this
.
metaService
.
setRobots
(
this
.
user
.
is_mature
?
'
noindex
'
:
'
all
'
);
this
.
metaService
.
setRobots
(
this
.
user
.
is_mature
||
this
.
user
[
'
subscribers_count
'
]
<
MIN_METRIC_FOR_ROBOTS
?
'
noindex
'
:
'
all
'
);
}
else
if
(
this
.
username
)
{
this
.
metaService
.
setTitle
(
this
.
username
);
}
else
{
...
...
This diff is collapsed.
src/app/modules/newsfeed/single/single.component.ts
View file @
c790a69b
...
...
@@ -10,7 +10,10 @@ import { EntitiesService } from '../../../common/services/entities.service';
import
{
Client
}
from
'
../../../services/api/client
'
;
import
{
FeaturesService
}
from
'
../../../services/features.service
'
;
import
{
ClientMetaService
}
from
'
../../../common/services/client-meta.service
'
;
import
{
MetaService
}
from
'
../../../common/services/meta.service
'
;
import
{
MetaService
,
MIN_METRIC_FOR_ROBOTS
,
}
from
'
../../../common/services/meta.service
'
;
import
{
ConfigsService
}
from
'
../../../common/services/configs.service
'
;
@
Component
({
...
...
@@ -166,6 +169,9 @@ export class NewsfeedSingleComponent {
?
activity
.
custom_data
[
0
][
'
src
'
]
:
activity
.
thumbnail_src
,
{
width
:
2000
,
height
:
1000
}
)
.
setRobots
(
activity
[
'
thumbs:up:count
'
]
>=
MIN_METRIC_FOR_ROBOTS
?
'
all
'
:
'
noindex
'
);
if
(
activity
.
custom_type
===
'
video
'
)
{
...
...
This diff is collapsed.