Skip to content

Provide a block theme for the Friends page #362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: remove-friendship-functionality
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blocks/block-visibility/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Alex Kirk",
"license": "GPL-2.0-or-later",
"main": "build/index.js",
"homepage": "https://wpfriends.at/",
"homepage": "https://friends.kirk.at/",
"repository": "git+https://github.com/akirk/friends.git",
"devDependencies": {
"@wordpress/scripts": "^15.0.0"
Expand Down
12 changes: 0 additions & 12 deletions blocks/follow-me/block.json

This file was deleted.

1 change: 0 additions & 1 deletion blocks/follow-me/build/index.asset.php

This file was deleted.

1 change: 0 additions & 1 deletion blocks/follow-me/build/index.js

This file was deleted.

20 changes: 0 additions & 20 deletions blocks/follow-me/package.json

This file was deleted.

48 changes: 0 additions & 48 deletions blocks/follow-me/src/index.js

This file was deleted.

45 changes: 0 additions & 45 deletions blocks/friend-posts/block.json

This file was deleted.

1 change: 0 additions & 1 deletion blocks/friend-posts/build/index.asset.php

This file was deleted.

1 change: 0 additions & 1 deletion blocks/friend-posts/build/index.js

This file was deleted.

20 changes: 0 additions & 20 deletions blocks/friend-posts/package.json

This file was deleted.

74 changes: 0 additions & 74 deletions blocks/friend-posts/src/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion blocks/friends-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Alex Kirk",
"license": "GPL-2.0-or-later",
"main": "build/index.js",
"homepage": "https://wpfriends.at/",
"homepage": "https://friends.kirk.at/",
"repository": "git+https://github.com/akirk/friends.git",
"devDependencies": {
"@wordpress/scripts": "^15.0.0"
Expand Down
12 changes: 0 additions & 12 deletions blocks/friends-list/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,6 @@ registerBlockType( 'friends/friends-list', {
onChange={ user_types => setAttributes( { user_types } ) }
value={ attributes.user_types }
options={ [
{
label: __( 'Friends', 'friends' ),
value: 'friends',
},
{
label: __( 'Friend requests', 'friends' ),
value: 'friend_requests',
},
{
label: __( 'Subscriptions', 'friends' ),
value: 'subscriptions',
},
{
label: __( 'Friends + Subscriptions', 'friends' ),
value: 'friends_subscriptions',
Expand Down
19 changes: 0 additions & 19 deletions blocks/message/block.json

This file was deleted.

1 change: 0 additions & 1 deletion blocks/message/build/index.asset.php

This file was deleted.

1 change: 0 additions & 1 deletion blocks/message/build/index.js

This file was deleted.

20 changes: 0 additions & 20 deletions blocks/message/package.json

This file was deleted.

24 changes: 0 additions & 24 deletions blocks/message/src/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions feed-parsers/class-feed-parser-simplepie.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,6 @@ public function get_comments( $comments, $post_id, ?User $friend_user = null, ?U
return $comments;
}

if ( ( $friend_user->is_friend_url( $comments_url ) && Friends::has_required_privileges() ) || wp_doing_cron() ) {
$comments_url = apply_filters( 'friends_friend_private_feed_url', $comments_url, $friend_user );
$comments_url = Friends::get_instance()->access_control->append_auth( $comments_url, $friend_user, 300 );
}

$items = $this->fetch_feed( $comments_url, $user_feed );

if ( is_wp_error( $items ) ) {
Expand Down
13 changes: 0 additions & 13 deletions friends-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,6 @@ table.feed-table.widefat th.nowrap {
content: "\f307";
}

a.friends-auth-link span.dashicons,
button.friends-auth-link span.dashicons {
color: #32c170;
margin-left: 6px;
}

a.explanation-friends-auth-link:hover,
a.friends-auth-link :hover,
a.friends-auth-link:hover span.dashicons,
button.friends-auth-link:hover span.dashicons {
color: #32c170;
}

p.lastlog {
padding: .8em 1em;
margin-bottom: 2em;
Expand Down
Loading
Loading