mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-10 13:14:04 +03:00
fixed slack message
This commit is contained in:
parent
31cb4b5af6
commit
5d6e583632
@ -79,9 +79,9 @@ export const createSlate = ({ userId, data }) => {
|
||||
// <VIEWER> WITNESSES <USER> CREATING <SLATE>
|
||||
createSlateActivityForEachSubscriber({ userId, data });
|
||||
|
||||
const userProfileURL = `https://slate.host/${data.context.username}`;
|
||||
const userURL = `<${userProfileURL}|${data.context.username}>`;
|
||||
const message = `*${userURL}* created a slate: https://slate.host/${data.context.username}/${data.context.slatename}`;
|
||||
const userProfileURL = `https://slate.host/${data.context.user.username}`;
|
||||
const userURL = `<${userProfileURL}|${data.context.user.username}>`;
|
||||
const message = `*${userURL}* created a slate: https://slate.host/${data.context.user.username}/${data.context.slate.slatename}`;
|
||||
|
||||
Social.sendSlackMessage(message);
|
||||
} catch (e) {
|
||||
@ -153,10 +153,10 @@ export const createSlateObject = ({ slateId, userId, data }) => {
|
||||
// <VIEWER> WITNESS <USER> ADDED OBJECT TO <SLATE>
|
||||
createSlateObjectActivityForEachSubscriber({ slateId, userId, data });
|
||||
|
||||
const userProfileURL = `https://slate.host/${data.context.username}`;
|
||||
const userURL = `<${userProfileURL}|${data.context.username}>`;
|
||||
const objectURL = `<https://slate.host/${data.context.username}/${data.context.slatename}/cid:${data.context.cid}|${data.context.cid}>`;
|
||||
const message = `*${userURL}* added ${objectURL} to https://slate.host/${data.context.username}/${data.context.slatename}`;
|
||||
const userProfileURL = `https://slate.host/${data.context.user.username}`;
|
||||
const userURL = `<${userProfileURL}|${data.context.user.username}>`;
|
||||
const objectURL = `<https://slate.host/${data.context.user.username}/${data.context.slate.slatename}/cid:${data.context.file.cid}|${data.context.file.cid}>`;
|
||||
const message = `*${userURL}* added ${objectURL} to https://slate.host/${data.context.user.username}/${data.context.slate.slatename}`;
|
||||
|
||||
Social.sendSlackMessage(message);
|
||||
} catch (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user