Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (3)
(fix): og:url should resolve correctly
· bca12fed
Mark Harding
authored
Jun 01, 2019
bca12fed
(chore): use new urls vs old style
· eee6704f
Mark Harding
authored
Jun 01, 2019
eee6704f
(chore): add Minds to title
· 75d495b6
Mark Harding
authored
Jun 01, 2019
75d495b6
Show whitespace changes
Inline
Side-by-side
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
(),
...
...
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
;
...
...