activity-feed | Activity feeds backed by Redis
kandi X-RAY | activity-feed Summary
kandi X-RAY | activity-feed Summary
Activity feeds backed by Redis
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Return redis instance
- Create a Redis instance from a Redis server
- Run setup
activity-feed Key Features
activity-feed Examples and Code Snippets
Community Discussions
Trending Discussions on activity-feed
QUESTION
I am using getstream's react-activity-feed
, react components to create activity and notification feeds using Stream. I would like to style the LoadMoreButton
component, which is passed as the default prop for the LoadMorePaginator
component.
What is the recommended approach to styling the LoadMoreButton
component?
ANSWER
Answered 2020-May-18 at 23:19You can import an .scss file into your component to override default getstream component styles, for example:
QUESTION
I'm trying to set up the react native tutorial at https://getstream.io/react-native-activity-feed/tutorial/, and it's not working.
I have the latest version of node, yarn, expo and create-react-native-app. All packages are updated.
When I run create-react-native-app and I use Yarn to install dependencies, I get the following warnings:
...ANSWER
Answered 2020-Jan-27 at 16:51Do the following in your sample app folder
QUESTION
I am building something similar to Trello where people can watch boards for notification updates and I quickly realized users can't add activities to feeds that don't match uid unless configured manually. (See GitHub issue: https://github.com/GetStream/react-activity-feed/issues/23)
I can see why permission needs to be denied as this can be a security concern. But then in the case of Music app like Spotify (https://getstream.io/docs/#social-network), how can users add activities to "playlist"?
So, my questions are:
- Would manual configuration raise any security concerns?
- If we don't configure it manually, how could users add activities to "playlist"? Is there any way to add activities without doing it on the server?
ANSWER
Answered 2019-Nov-19 at 17:51When feed type is configured for shared write access it means that any user would be allowed to write to any feed with that type.
So if you have a playlist
feed type configured for shared access user A
would be allowed add/delete activities to playlist:B
instead of only being allowed to write to playlist:A
Whether this is a security concern is dependent on the system you are trying to build.
Doing this operation via a server under your control you can ensure no invalid operations are permitted.
For your case you could use follow following to get other users' board updates to their notification feeds.
QUESTION
I'm currently using Stream to build Feeds in our React Native app.
I ran into a problem enabling users to post to a new board feed group I made.
Currently iOS only
Problem: I have created a "board" feed group and want to allow users to post to that feed group to save posts. I have enabled permissions for this as per: https://github.com/GetStream/react-activity-feed/issues/23 via support. Yet I am still unable to post to the "board" feed group but I'm still receiving a permissions error.
I'm using the SinglePost component from the official React Native GetStream library and have a save button on the activity component.
The save button opens a modal to allow a user to select a board and after a user selects a board the _saveBoard method is called. You can see the full method here.
...ANSWER
Answered 2019-Oct-01 at 14:11The default permission policies don't allow a user to add an activity with actor set to anything else than current user's reference. This restriction is only enforced client-side to make sure that users are not able to impersonate other users.
Changing actor from this.props.client.currentUser.id
into this.props.client.currentUser.id
will make sure that the activity is added with a user reference equal to current user.
QUESTION
There is a screen called Login
that is passing in an action creator from loginActions
like so:
https://gist.github.com/ldco2016/e2feedc5460e64e9b740af73cec5fe89
When I boot up the application and click on the Login button, I get the following error:
In the legacy version of the application, all this was working, no such error, but now when clicking the Login button in the upgraded 0.60.4 version, I get this error.
When I look at the loginActions
file, I am wondering if there should be an export default connect()()
and mapDispatchToProps
in there to inject props into Login
screen. So one of my questions is, do I indeed need this?
How did it work before? Was it passed down from the parent? This is the loginActions.js
file:
ANSWER
Answered 2019-Aug-03 at 00:20This is react-redux yeah?
Have you wrapped your Login component in a 'connect' wrapper.
{connect} from 'react-redux';
connect(mapStateToProps, mapDispatchToProps)(Login);
I'm not sure if your Login component knows which action to use, 'setLoginDisabled()', and consequently the reducer, 'SET_LOGIN_DISABLED', doesn't get fired. I just set up react-redux with react-native and I used the 'connect' wrapper and it worked just fine.
Might want to try, https://github.com/reduxjs/react-redux/blob/master/docs/api/connect.md
QUESTION
I'm using a jQuery plugin datepicker to show an inline calendar element inside of a column, but the calendar is being placed at the top left of the page, and I'm not sure exactly what I'm doing wrong.
I've attached a picture of what I see on my screen. The red boxes are the two columns I'm working with, and I'm trying to get the date picker underneath the input field in the first column.
...ANSWER
Answered 2019-Aug-08 at 19:52It seems that the datepicker you are trying to use is bringing it's own css to the party and placing it on the container you chose:
QUESTION
ANSWER
Answered 2019-Aug-04 at 04:57The immediate issue looks like the multiple exports in the component files. Try removing the export
before the class definition and only keep export default
at the end.
Regarding the confusion about SetNewPassword.js
and CompleteAccount.js
having the same exports, that'll not cause an issue as long you import the default exported
component.
To put it simply,
If you export a component as default
, then you can import it without the {}
curly braces, like
QUESTION
How does one delete a post with the react-activity-feed
client for GetStream
?
ANSWER
Answered 2019-Jun-12 at 13:37The StreamApp component passes a function down to the FlatFeed and the Activity component called onRemoveActivity
. This is a function that takes an activity's id and removes that.
So you could do something like this to remove an activity:
QUESTION
Our Use case is Anyone can create a site in our platform bit as Wix lets say. Each Site has its own Community & Chat.
So I used my appId, secret key to create the user session token for the user of the site1 says site-1-user-1 for displaying the community of site1. I used react-activity-feed components to display the timeline feed of user site-1-user-1 (timeline:site-1-user-1)
I also displayed status update from above the activity feeds using react component. So when I post in this status update form, the activity gets displayed as by site-1-user-1.
How do I post activity as a different user say site-1-user-2 using the same token? I want the timeline feed with status update form to be displayed as a discussion forum where any logged in user can post any topic and see other activities also.
I am able to do this using PHP and getStream SDK. How is it possible by using the react component?
...ANSWER
Answered 2019-May-24 at 11:07Stream restricts actions user is able to perform when using client-side tokens:
- User is able to read any feed
- User is able to make feeds with her user-id follow any feed
- User is able to post to feeds with her user-id
Client side tokens can only be used to perform the actions as the user the token was created for.
If you need to be able to impersonate other users or post contents for users to feeds they have no access to you will have to user server-side stream api
QUESTION
I think something wrong with the iOS SDK of getStream. I m not getting any callback on following , unfollowing and checking if user is following someone.For all these three case callback is not coming. Even in the sample app given by stream is not working for these case. Below is the code from ProfileViewController from sample app. Rest of the sample app working fine. Url of the sample is : https://github.com/GetStream/swift-activity-feed
...ANSWER
Answered 2019-May-13 at 10:12It was a bug, inside isFollow
the user flat feed is deallocating after the request. Please check the new version v.1.0.11.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install activity-feed
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page