Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
137
Issues
137
List
Boards
Labels
Service Desk
Milestones
Merge Requests
27
Merge Requests
27
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
812e58d54c9c8f4de893579707bf163f0306f5fb...75d495b6480e704e5acd1d622edc799e825d250f
Source
75d495b6480e704e5acd1d622edc799e825d250f
Select Git revision
...
Target
812e58d54c9c8f4de893579707bf163f0306f5fb
Select Git revision
Compare
Commits (3)
(fix): og:url should resolve correctly
· bca12fed
Mark Harding
authored
5 hours ago
bca12fed
(chore): use new urls vs old style
· eee6704f
Mark Harding
authored
5 hours ago
eee6704f
(chore): add Minds to title
· 75d495b6
Mark Harding
authored
5 hours ago
75d495b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
SEO.php
Core/Blogs/SEO.php
+2
-2
SitemapTrending.php
Core/SEO/Sitemaps/Modules/SitemapTrending.php
+1
-1
No files found.
Core/Blogs/SEO.php
View file @
75d495b6
...
...
@@ -114,7 +114,7 @@ class SEO
$body
=
substr
(
$body
,
0
,
139
)
.
'…'
;
}
$url
=
$blog
->
getPermaURL
();
$url
=
$blog
->
getPermaURL
()
?:
$blog
->
getUrl
()
;
$ssl
=
(
isset
(
$_SERVER
[
'SERVER_PORT'
])
&&
$_SERVER
[
'SERVER_PORT'
]
==
443
)
||
(
isset
(
$_SERVER
[
'HTTP_X_FORWARDED_PROTO'
])
&&
$_SERVER
[
'HTTP_X_FORWARDED_PROTO'
]
==
'https'
);
...
...
@@ -129,7 +129,7 @@ class SEO
$allowIndexing
=
Counters
::
get
(
$blog
->
getGuid
(),
'thumbs:up'
)
>=
2
;
return
$meta
=
array
(
'title'
=>
$custom_meta
[
'title'
]
?:
$blog
->
getTitle
()
,
'title'
=>
(
$custom_meta
[
'title'
]
?:
$blog
->
getTitle
())
.
' | '
.
Core\Di\Di
::
_
()
->
get
(
'Config'
)
->
site_name
,
'description'
=>
$custom_meta
[
'description'
]
?:
$body
,
'author'
=>
$custom_meta
[
'author'
]
?:
'@'
.
$blog
->
getOwnerObj
()[
'username'
],
'og:title'
=>
$custom_meta
[
'title'
]
?:
$blog
->
getTitle
(),
...
...
This diff is collapsed.
Click to expand it.
Core/SEO/Sitemaps/Modules/SitemapTrending.php
View file @
75d495b6
...
...
@@ -63,7 +63,7 @@ class SitemapTrending extends SitemapModule
$route
=
$entity
->
username
;
break
;
case
'blogs'
:
$route
=
'blog/view/'
.
$entity
->
guid
;
$route
=
$entity
->
getUrl
(
true
)
;
break
;
case
'groups'
:
$route
=
'groups/profile'
.
$entity
->
guid
;
...
...
This diff is collapsed.
Click to expand it.