forked from forcedotcom/GIFter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea441bb
commit d448cdc
Showing
16 changed files
with
122 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.sfdx | ||
.vscode | ||
.vscode | ||
scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
force-app/main/default/aura/PostGIFToChatter/PostGIFToChatter.auradoc
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
force-app/main/default/aura/PostGIFToChatter/PostGIFToChatter.cmp
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
force-app/main/default/aura/PostGIFToChatter/PostGIFToChatter.cmp-meta.xml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
force-app/main/default/aura/PostGIFToChatter/PostGIFToChatter.css
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
force-app/main/default/aura/PostGIFToChatter/PostGIFToChatter.design
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
force-app/main/default/aura/PostGIFToChatter/PostGIFToChatter.svg
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
force-app/main/default/aura/PostGIFToChatter/PostGIFToChatterController.js
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
force-app/main/default/aura/PostGIFToChatter/PostGIFToChatterHelper.js
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
force-app/main/default/aura/PostGIFToChatter/PostGIFToChatterRenderer.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
public with sharing class ChatterHelper { | ||
|
||
@AuraEnabled | ||
public static String getChatterGroups() { | ||
|
||
// System.debug('getChatterGroups'); | ||
|
||
// ConnectApi.ContentHubRepositoryCollection repositoryCollection = ConnectApi.ContentHub.getRepositories(); | ||
|
||
// System.debug('repository'); | ||
|
||
// for(ConnectApi.ContentHubRepository repository : repositoryCollection.repositories){ | ||
|
||
// System.debug(repository); | ||
|
||
// } | ||
|
||
|
||
|
||
|
||
|
||
// String userId = UserInfo.getUserId(); | ||
// System.debug('userId: ' + userId); | ||
|
||
// String communityId = null; | ||
// String imageId = '069D00000001INA'; // need to replace | ||
// // String mentionedUserId = '005D0000001QNpr'; | ||
// String targetUserOrGroupOrRecordId = 'me'; // is this right? | ||
|
||
// ConnectApi.FeedItemInput input = new ConnectApi.FeedItemInput(); | ||
// input.subjectId = targetUserOrGroupOrRecordId; | ||
// input.feedElementType = ConnectApi.FeedElementType.FeedItem; | ||
|
||
// ConnectApi.MessageBodyInput messageInput = new ConnectApi.MessageBodyInput(); | ||
// ConnectApi.TextSegmentInput textSegment; | ||
// ConnectApi.MentionSegmentInput mentionSegment; | ||
// ConnectApi.MarkupBeginSegmentInput markupBeginSegment; | ||
// ConnectApi.MarkupEndSegmentInput markupEndSegment; | ||
// ConnectApi.InlineImageSegmentInput inlineImageSegment; | ||
|
||
// System.debug('here 1'); | ||
|
||
// messageInput.messageSegments = new List<ConnectApi.MessageSegmentInput>(); | ||
|
||
// markupBeginSegment = new ConnectApi.MarkupBeginSegmentInput(); | ||
// markupBeginSegment.markupType = ConnectApi.MarkupType.Bold; | ||
// messageInput.messageSegments.add(markupBeginSegment); | ||
|
||
// System.debug('here 2'); | ||
|
||
// textSegment = new ConnectApi.TextSegmentInput(); | ||
// textSegment.text = 'Hello '; | ||
// messageInput.messageSegments.add(textSegment); | ||
|
||
// System.debug('here 3'); | ||
|
||
// // mentionSegment = new ConnectApi.MentionSegmentInput(); | ||
// // mentionSegment.id = mentionedUserId; | ||
// // messageInput.messageSegments.add(mentionSegment); | ||
|
||
// System.debug('here 4'); | ||
|
||
// textSegment = new ConnectApi.TextSegmentInput(); | ||
// textSegment.text = '!'; | ||
// messageInput.messageSegments.add(textSegment); | ||
|
||
// System.debug('here 5'); | ||
|
||
// markupEndSegment = new ConnectApi.MarkupEndSegmentInput(); | ||
// markupEndSegment.markupType = ConnectApi.MarkupType.Bold; | ||
// messageInput.messageSegments.add(markupEndSegment); | ||
|
||
// System.debug('here 6'); | ||
|
||
// inlineImageSegment = new ConnectApi.InlineImageSegmentInput(); | ||
// inlineImageSegment.altText = 'image one'; | ||
// inlineImageSegment.fileId = imageId; | ||
// messageInput.messageSegments.add(inlineImageSegment); | ||
|
||
// input.body = messageInput; | ||
|
||
// System.debug('here 7'); | ||
|
||
// ConnectApi.ChatterFeeds.postFeedElement(communityId, input, null); | ||
|
||
// System.debug('here 8'); | ||
|
||
return 'finished'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="urn:metadata.tooling.soap.sforce.com" fqn="ChatterHelper"> | ||
<apiVersion>35.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
6 changes: 6 additions & 0 deletions
6
force-app/main/default/remoteSiteSettings/GiphyMedia.remoteSite-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<RemoteSiteSetting xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<disableProtocolSecurity>false</disableProtocolSecurity> | ||
<isActive>true</isActive> | ||
<url>https://media1.giphy.com</url> | ||
</RemoteSiteSetting> |