mirror of
https://ghfast.top/https://github.com/discourse/discourse-follow.git
synced 2026-07-15 11:36:38 +08:00
This commit adds a nav item under the Activity tab in user profile to show a feed of posts made by followed users.
15 lines
385 B
JavaScript
15 lines
385 B
JavaScript
import { ajax } from "discourse/lib/ajax";
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
export default DiscourseRoute.extend({
|
|
model(/*params*/) {
|
|
return ajax(`/u/${this.paramsFor("user").username}/follow/followers`);
|
|
},
|
|
|
|
setupController(controller, model) {
|
|
controller.setProperties({
|
|
users: model,
|
|
user: this.modelFor("user"),
|
|
});
|
|
},
|
|
});
|