mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-20 06:56:33 +00:00
Better urls.
This commit is contained in:
parent
cd721bbc0b
commit
2c71e05199
1 changed files with 2 additions and 2 deletions
4
ui/src/components/comment-form.tsx
vendored
4
ui/src/components/comment-form.tsx
vendored
|
@ -47,7 +47,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
|
||||||
{
|
{
|
||||||
trigger: '@',
|
trigger: '@',
|
||||||
selectTemplate: (item: any) => {
|
selectTemplate: (item: any) => {
|
||||||
return `[/u/${item.original.key}](${window.location.origin}/u/${item.original.key})`;
|
return `[/u/${item.original.key}](/u/${item.original.key})`;
|
||||||
},
|
},
|
||||||
values: (text: string, cb: any) => {
|
values: (text: string, cb: any) => {
|
||||||
this.userSearch(text, users => cb(users));
|
this.userSearch(text, users => cb(users));
|
||||||
|
@ -59,7 +59,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
|
||||||
{
|
{
|
||||||
trigger: '#',
|
trigger: '#',
|
||||||
selectTemplate: (item: any) => {
|
selectTemplate: (item: any) => {
|
||||||
return `[/c/${item.original.key}](${window.location.origin}/c/${item.original.key})`;
|
return `[/c/${item.original.key}](/c/${item.original.key})`;
|
||||||
},
|
},
|
||||||
values: (text: string, cb: any) => {
|
values: (text: string, cb: any) => {
|
||||||
this.communitySearch(text, communities => cb(communities));
|
this.communitySearch(text, communities => cb(communities));
|
||||||
|
|
Loading…
Reference in a new issue