Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Quote #7

Merged
merged 9 commits into from
Apr 7, 2015
Merged

Quote #7

merged 9 commits into from
Apr 7, 2015

Conversation

ATofighi
Copy link
Contributor

No description provided.

@@ -130,18 +130,43 @@ public function last(Store $settings, $slug = '', $id = 0)
}
}

public function reply($slug = '', $id = 0)
public function reply($slug = '', $id = 0, $postId = 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come we've got default values here? Shouldn't the default value for $postId be null?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$slug and $id are required anyways (Laravel should throw an error already as the route requires two parameters). But whether 0 or null doesn't make any difference as long as the if below is correct. Which should check $postId > 0 instead of only $postId

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, if $slug and $id are required then they shouldn't have default values. I think null is more correct for the default value of $postId and we should keep the if ($postId) check as it is. 0 could conceivably be a valid ID whereas null is a type that is reserved specifically to denote nothingness.

- add Quote Renderer
- use PostPresenter
- use object instead of array
@ATofighi
Copy link
Contributor Author

TODO: /me....

@justinsoltesz
Copy link
Member

I'm not sure if this is relevant to implementing this PR, but my intent in the prototypes is for the quote button to act like multi-quote in 1.x -- quoted posts get added to the quick reply box. This implementation is fine for non-JS, but multi-quote should be added on top of the quote button (not as a separate button).

@ATofighi
Copy link
Contributor Author

can you merge it?

@ATofighi ATofighi mentioned this pull request Mar 20, 2015
2 tasks
@justinsoltesz
Copy link
Member

Are you asking me about the button or are you asking about this PR?

@ATofighi
Copy link
Contributor Author

about this PR! :D

about the button: I think we should add a click event with return false for multiQuote to quote button or do something like edit button (Quick Edit/ Full Edit), dropDown menu...

@justinsoltesz
Copy link
Member

Click event with return false is what I was suggesting. :-)

@JN-Jones
Copy link
Contributor

Quote Render should have an interface which is injected to the controller and bind in the service provider as markdown has another syntax for quotes

@wpillar
Copy link
Contributor

wpillar commented Mar 21, 2015

QuoteRendererInterface
MyCodeQuoteRenderer implements QuoteRendererInterface
MarkdownQuoteRenderer implements QuoteRendererInterface

Something like that?

@JN-Jones
Copy link
Contributor

Yep. Atm we can bind the MyCode presenter directly in the service provider as we haven't included any options for markdown so far but as it's planned we should keep that already in mind.

@JN-Jones
Copy link
Contributor

JN-Jones commented Apr 3, 2015

@ATofighi can you add the interface?

@ATofighi
Copy link
Contributor Author

ATofighi commented Apr 4, 2015

@JN-Jones Yes, I'll add it soon...

@euantorano
Copy link
Member

Is this now complete?

@euantorano euantorano added this to the Alpha 1 milestone Apr 7, 2015
@ATofighi
Copy link
Contributor Author

ATofighi commented Apr 7, 2015

yes

@euantorano
Copy link
Member

Consider it done 😄

euantorano added a commit that referenced this pull request Apr 7, 2015
@euantorano euantorano merged commit 114bc02 into mybb:master Apr 7, 2015
@ATofighi ATofighi deleted the quote branch April 7, 2015 10:21
ATofighi added a commit that referenced this pull request Apr 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants